package cn.edu.scau.cmi.wujingxuan.singleton;

public class Chairman
{

	private static Chairman chairman;// 绉佹湁锛岄潤鎬佸璞�
	private String name;

	private Chairman(String name)
	{
		this.name = name;
	}

	public static Chairman getInstance(String name)
	{
		if (chairman == null)
		{
			chairman = new Chairman(name);
			return chairman;
		} else
			return chairman;

	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public void excuteOfDuty()
	{
		System.out.println("鍚屽織浠緵鑻︿簡");
	}

}
